/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 活动浏览记录 GET /scenic/activity/activityViews */
export async function scenicActivityActivityViewsUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicActivityActivityViewsUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/scenic/activity/activityViews', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 删除活动 POST /scenic/activity/deleteActivity */
export async function scenicActivityDeleteActivityUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicActivityDeleteActivityUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/scenic/activity/deleteActivity', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 活动详情 POST /scenic/activity/getActivityById */
export async function scenicActivityGetActivityByIdUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicActivityGetActivityByIdUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyinghuodongxinxivo>(
    '/scenic/activity/getActivityById',
    {
      method: 'POST',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** getActivityMenuList POST /scenic/activity/getActivityMenuList */
export async function scenicActivityGetActivityMenuListUsingPost({
  body,
  options,
}: {
  body: API.ActivityQueryBo113803b3A05f4f4f9961Ac304c059d77;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVohuodongxinxivo>(
    '/scenic/activity/getActivityMenuList',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 分页查询活动 POST /scenic/activity/pageActivity */
export async function scenicActivityPageActivityUsingPost({
  body,
  options,
}: {
  body: API.ActivityQueryBoc7c2b93fE1394cdbBd05Ea7551b87705;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVohuodongxinxivo>(
    '/scenic/activity/pageActivity',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 保存活动 传递id则修改 POST /scenic/activity/saveActivity */
export async function scenicActivitySaveActivityUsingPost({
  body,
  options,
}: {
  body: {};
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyinglong>('/scenic/activity/saveActivity', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
